package com.hope.mychat.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by IDEA.
 * User: ZWH
 * Date: 2020/1/17
 * Time: 9:53
 * Desc: 自定义异常类
 */
public class BizException extends RuntimeException {
    @Getter
    @Setter
    private int code;

    public BizException() {
        super();
    }

    public BizException(int code, String message) {
        super(message);
        this.setCode(code);
    }
}
